#import "ALToolbar.h"

static NSGradient *ALToolbarBackgroundGradient;
static NSColor *ALToolbarBottomBorderColor;


@implementation ALToolbar

+(void)initialize {
	ALToolbarBackgroundGradient = [[NSGradient alloc] initWithStartingColor:[NSColor colorWithCalibratedWhite:0.714 alpha:1.000] endingColor:[NSColor colorWithCalibratedWhite:0.875 alpha:1.000]];
	ALToolbarBottomBorderColor = [NSColor colorWithCalibratedWhite:0.300 alpha:1.000];
}

-(void)drawRect:(NSRect)dirtyRect {
	NSRect bounds = [self bounds];
	[ALToolbarBackgroundGradient drawInRect:bounds angle:90.0f];
	[ALToolbarBottomBorderColor setStroke];
	[NSBezierPath strokeLineFromPoint:bounds.origin toPoint:NSMakePoint(NSMaxX(bounds), NSMinY(bounds))];
}

@end
